/*
 * @Description: s-button 组件的type和size默认配置
 * @Author: 无痕
 * @Email: 350801869@qq.com
 * @Date: 2021-03-01 21:44:32
 * @LastEditTime: 2021-03-03 17:29:21
 * @LastEditors: 无痕
 */
const buttonData = {
  // 按钮类型主题配置
  type: {
    default: {
      background: '{white}',
      color: '{textPrimary}',
      borderColor: '{borderLighter}',
    },
    primary: {
      background: '{primary}',
      color: '{white}',
      borderColor: '{primary}',
    },
    info: {
      background: '{info}',
      color: '{white}',
      borderColor: '{info}',
    },
    success: {
      background: '{success}',
      color: '{white}',
      borderColor: '{success}',
    },
    warning: {
      background: '{warning}',
      color: '{white}',
      borderColor: '{warning}',
    },
    danger: {
      background: '{danger}',
      color: '{white}',
      borderColor: '{danger}',
    },
  },
  // 按钮对应朴素主题配置
  plain: {
    default: {
      background: '{white}',
      color: '{textPrimary}',
      borderColor: '{borderLighter}',
    },
    primary: {
      background: '{white}',
      color: '{primary}',
      borderColor: '{primary}',
    },
    info: {
      background: '{white}',
      color: '{info}',
      borderColor: '{info}',
    },
    success: {
      background: '{white}',
      color: '{success}',
      borderColor: '{success}',
    },
    warning: {
      background: '{white}',
      color: '{warning}',
      borderColor: '{warning}',
    },
    danger: {
      background: '{white}',
      color: '{danger}',
      borderColor: '{danger}',
    },
  },
  // 按钮大小
  size: {
    default: {
      width: '',
      height: 88,
      fontSize: 28,
      padding: '0 30rpx',
    },
    mini: {
      width: '',
      height: 48,
      fontSize: 20,
      padding: '0 8rpx',
    },
    small: {
      width: '',
      height: 64,
      fontSize: 24,
      padding: '0 16rpx',
    },
    large: {
      width: '100%',
      height: 100,
      fontSize: 32,
      padding: 0,
    },
  },
};

export default buttonData;
